package model;

import java.util.Arrays;

public class HumanEnteredModel implements SudokuInterface {
	
	public static final int size = 9;
	
	private int[][] values;
	
	public HumanEnteredModel() {
		values = new int[size][size];
		for (int i = 0; i < values.length; ++i)
			Arrays.fill(values[i], -1);
	}

	@Override
	public int getValueAt(int x, int y) {
		return values[x][y];
	}

	@Override
	public void setValueAt(int x, int y, int val) {
		assert(val <= size && val > 0);
		values[x][y] = val;
	}
	
	@Override
	public boolean isSetByHuman(int x, int y) {
		return getValueAt(x, y) != -1;
	}

}
